package com.example.javatwo.pojo.xs.lyh;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class historycheck {
//	DROP TABLE historyCheck;
//	CREATE TABLE historyCheck(
//		historyID int(10) not null PRIMARY KEY,	/*编号*/
//		customerID VARCHAR(50) null,	/*客户*/
//		tranType   VARCHAR(50) null,	/*单别*/
//		historyDate DATE       null,	/*日期*/
//		fromNo     Varchar(20) null,	/*单号*/
//		currID	   Varchar(20) null,	/*币别*/
//		exchRate   double null,	/*汇率*/
//		prodID     VARCHAR(50) null,	/*物料编号*/
//		prdClassName VARCHAR(50) null,	/*物料名称*/
//		prodSize   VARCHAR(20) null,	/*规格型号*/
//		quantity   int(10)     null,	/*数量*/
//		unit	   VARCHAR(20) null,	/*单位*/
//		oldPrice   double null,	/*折扣前单价*/
//		discount   double null,	/*折数(%)*/
//		sPrice     double null,	/*单价*/
//		isTax      VARCHAR(20)  null,	/*单价是否含税*/
//		amount	   double null,	/*金额*/
//		remarks    VARCHAR(100) null	/*备注*/
//	);
	private int historyID;/*编号*/
	private String customerID;/*客户*/
	private String tranType;/*单别*/
	
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8",locale="zh")
	private Date historyDate;/*日期*/
	private String fromNo;/*单号*/
	private String currID;/*币别*/
	private double exchRate;/*汇率*/
	private String prodID;/*物料编号*/
	private String prdClassName;/*物料名称*/
	private String prodSize;/*规格型号*/
	private int quantity;/*数量*/
	private String unit;/*单位*/
	private double oldPrice;/*折扣前单价*/
	private double discount;/*折数(%)*/
	private double sPrice;/*单价*/
	private String isTax;/*单价是否含税*/
	private double amount;/*金额*/
	private String remarks;/*备注*/
	public int getHistoryID() {
		return historyID;
	}
	public void setHistoryID(int historyID) {
		this.historyID = historyID;
	}
	public String getCustomerID() {
		return customerID;
	}
	public void setCustomerID(String customerID) {
		this.customerID = customerID;
	}
	public String getTranType() {
		return tranType;
	}
	public void setTranType(String tranType) {
		this.tranType = tranType;
	}
	public Date getHistoryDate() {
		return historyDate;
	}
	public void setHistoryDate(Date historyDate) {
		this.historyDate = historyDate;
	}
	public String getFromNo() {
		return fromNo;
	}
	public void setFromNo(String fromNo) {
		this.fromNo = fromNo;
	}
	public String getCurrID() {
		return currID;
	}
	public void setCurrID(String currID) {
		this.currID = currID;
	}
	public double getExchRate() {
		return exchRate;
	}
	public void setExchRate(double exchRate) {
		this.exchRate = exchRate;
	}
	public String getProdID() {
		return prodID;
	}
	public void setProdID(String prodID) {
		this.prodID = prodID;
	}
	public String getPrdClassName() {
		return prdClassName;
	}
	public void setPrdClassName(String prdClassName) {
		this.prdClassName = prdClassName;
	}
	public String getProdSize() {
		return prodSize;
	}
	public void setProdSize(String prodSize) {
		this.prodSize = prodSize;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public double getOldPrice() {
		return oldPrice;
	}
	public void setOldPrice(double oldPrice) {
		this.oldPrice = oldPrice;
	}
	public double getDiscount() {
		return discount;
	}
	public void setDiscount(double discount) {
		this.discount = discount;
	}
	public double getsPrice() {
		return sPrice;
	}
	public void setsPrice(double sPrice) {
		this.sPrice = sPrice;
	}
	public String getIsTax() {
		return isTax;
	}
	public void setIsTax(String isTax) {
		this.isTax = isTax;
	}
	public double getAmount() {
		return amount;
	}
	public void setAmount(double amount) {
		this.amount = amount;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public historycheck(int historyID, String customerID, String tranType, Date historyDate, String fromNo,
			String currID, double exchRate, String prodID, String prdClassName, String prodSize, int quantity,
			String unit, double oldPrice, double discount, double sPrice, String isTax, double amount, String remarks) {
		super();
		this.historyID = historyID;
		this.customerID = customerID;
		this.tranType = tranType;
		this.historyDate = historyDate;
		this.fromNo = fromNo;
		this.currID = currID;
		this.exchRate = exchRate;
		this.prodID = prodID;
		this.prdClassName = prdClassName;
		this.prodSize = prodSize;
		this.quantity = quantity;
		this.unit = unit;
		this.oldPrice = oldPrice;
		this.discount = discount;
		this.sPrice = sPrice;
		this.isTax = isTax;
		this.amount = amount;
		this.remarks = remarks;
	}
	
	
	public historycheck(String customerID, String tranType, Date historyDate, String fromNo, String currID,
			double exchRate, String prodID, String prdClassName, String prodSize, int quantity, String unit,
			double oldPrice, double discount, double sPrice, String isTax, double amount, String remarks) {
		super();
		this.customerID = customerID;
		this.tranType = tranType;
		this.historyDate = historyDate;
		this.fromNo = fromNo;
		this.currID = currID;
		this.exchRate = exchRate;
		this.prodID = prodID;
		this.prdClassName = prdClassName;
		this.prodSize = prodSize;
		this.quantity = quantity;
		this.unit = unit;
		this.oldPrice = oldPrice;
		this.discount = discount;
		this.sPrice = sPrice;
		this.isTax = isTax;
		this.amount = amount;
		this.remarks = remarks;
	}
	public historycheck() {
		super();
	}
	@Override
	public String toString() {
		return "historycheck [historyID=" + historyID + ", customerID=" + customerID + ", tranType=" + tranType
				+ ", historyDate=" + historyDate + ", fromNo=" + fromNo + ", currID=" + currID + ", exchRate="
				+ exchRate + ", prodID=" + prodID + ", prdClassName=" + prdClassName + ", prodSize=" + prodSize
				+ ", quantity=" + quantity + ", unit=" + unit + ", oldPrice=" + oldPrice + ", discount=" + discount
				+ ", sPrice=" + sPrice + ", isTax=" + isTax + ", amount=" + amount + ", remarks=" + remarks + "]";
	}
	
	
}
